/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package org.kz.shange.models;

import java.util.Date;
import org.springframework.data.mongodb.core.mapping.DBRef;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 *
 * @author Administrator
 * @desc 评论内容
 */
@Document(collection="Discuse")
public class Discuse {
    String text;
    @DBRef
    Author author;
    Date attime;

    @Override
    public String toString() {
        return "Discuse{" + "text=" + text + ", author=" + author + ", attime=" + attime + '}';
    }

//<editor-fold defaultstate="collapsed" desc="property">
    public String getText() {
        return text;
    }
    
    public void setText(String text) {
        this.text = text;
    }
    
    public Author getAuthor() {
        return author;
    }
    
    public void setAuthor(Author author) {
        this.author = author;
    }
    
    public Date getAttime() {
        return attime;
    }
    
    public void setAttime(Date attime) {
        this.attime = attime;
    }
//</editor-fold>
}
